package model;

import static org.junit.Assert.*;
import org.junit.Test;

/**
 * This class is to test the user class.
 * @author Gregory Coleman
 */
public class UserTest {

	User me=new User("bob@homeless.sad",1,"bob","thebad");
	
	@Test
	public void testUser() {
		assertNotEquals("there should be a user!",
				new User("mike@homeless.sad",1,"mike",
						"thestout"), null);
	}

	@Test
	public void testGetName() {
		assertEquals("His name was bob....",me.getName(),
				"bob@homeless.sad");
	}

	@Test
	public void testToString() {
		assertEquals("should be a string there...", 
				me.toString(),
				"Name: bob thebad; User ID: 1");
	}

	@Test
	public void testEqualsObject() {
		assertEquals("should be equal!",me,me);
	}

}
